package com.boot.test;

import java.util.Arrays;
import java.util.List;

public class StreamOperator {
    public static void main(String[] args){
        List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8);
        list.stream().filter(i -> i % 2 == 0)
                .limit(3)
                .map(String::valueOf)
                .forEach(System.out::println);
    }
}
